package shared;

import java.rmi.Remote;
import java.rmi.RemoteException;

public interface DataServerInterface extends Remote
{
	
	public String hello() throws RemoteException;
	
	
	//methods for client
	public DataChunk readData(long fileID, long offset) throws RemoteException;

	/**
	 * 
	 * @param fileID
	 * @return number of bytes successfully written
	 */
	public void writeData(FileDescriptor fileDescriptor, DataChunk dataChunk) throws RemoteException;
	
	
	public void createFile(long newFileID) throws RemoteException;

}
